import type { Meta, StoryObj } from "@storybook/react";
import React from "react";
import SettleComprehensiveAnalysisPieChart from "./index";

const meta = {
  title: "饼图/待收款综合分析-SettleComprehensiveAnalysisPieChart",
  component: SettleComprehensiveAnalysisPieChart,
  tags: ["autodocs"],
  argTypes: {},
  decorators: [
    (Story) => (
      <div style={{ backgroundColor: "#06112B", height: "215px" }}>
        <Story />
      </div>
    ),
  ],
} satisfies Meta<typeof SettleComprehensiveAnalysisPieChart>;

export default meta;
type Story = StoryObj<typeof meta>;

export const basic: Story = {
  args: {
    unitName: "万元",
    dataSource: [
      {
        name: "展期金额",
        amount: 0,
      },
      {
        name: "逾期金额",
        amount: 0,
      },
      {
        name: "未到期金额",
        amount: 0,
      },
    ],
  },
};
